package com.hddx.controller;

import com.hddx.servie.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
@Repository("studentcontroller")
//@Scope("prototype")
//慎用，原型注解模式，多人访问数据庞大
//@Component("studentcontroller")
public class StudentController {
    @Autowired
    private StudentService studentService;

    public void queryStudent() {
        studentService.queryStudent();

    }
}
